package it.polimi.TravelDreamEAR.ejb.entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the amico database table.
 * 
 */
@Entity
@NamedQuery(name="Amico.findAll", query="SELECT a FROM Amico a")
public class Amico implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private AmicoPK id;

	//bi-directional many-to-one association to Cliente
	@ManyToOne
	@JoinColumn(name="CLIENTE")
	private Cliente clienteBean;

	//bi-directional many-to-one association to IstanzaPacchetto
	@ManyToOne
	@JoinColumn(name="ISTANZA")
	private IstanzaPacchetto istanzaPacchetto;

	public Amico() {
		this.id = null;
	}

	public AmicoPK getId() {
		return this.id;
	}

	public void setId(AmicoPK id) {
		this.id = id;
	}

	public Cliente getClienteBean() {
		return this.clienteBean;
	}

	public void setClienteBean(Cliente clienteBean) {
		this.clienteBean = clienteBean;
	}

	public IstanzaPacchetto getIstanzaPacchetto() {
		return this.istanzaPacchetto;
	}

	public void setIstanzaPacchetto(IstanzaPacchetto istanzaPacchetto) {
		this.istanzaPacchetto = istanzaPacchetto;
	}

}